<div class="articles form">
<?php echo $this->ExtendedForm->create('Article', array('novalidate' => 'novalidate'));?>
	<h3><?php echo __d('admin', 'Edit Article'); ?></h3>
	<?php
		if(isset($this->request->params['named']['id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('id', array_merge(array('label' => __d('admin', 'Id'))));
		if(isset($this->request->params['named']['id'])) echo '</div>';

		if(isset($this->request->params['named']['title'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('title', array_merge(array('label' => __d('admin', 'Title'))));
		if(isset($this->request->params['named']['title'])) echo '</div>';

		if(isset($this->request->params['named']['image'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('image', array_merge(array('type' => 'image', 'label' => __d('admin', 'Image'))));
		if(isset($this->request->params['named']['image'])) echo '</div>';

		if(isset($this->request->params['named']['short_des'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('short_des', array_merge(array('label' => __d('admin', 'Short Des'))));
		if(isset($this->request->params['named']['short_des'])) echo '</div>';

		if(isset($this->request->params['named']['full_des'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('full_des', array_merge(array('label' => __d('admin', 'Full Des'))));
		if(isset($this->request->params['named']['full_des'])) echo '</div>';

		if(isset($this->request->params['named']['category_id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('category_id', array_merge(array('label' => __d('admin', 'Category')), array('options' => $categoriesSelect, 'empty' => '- ' . __d('admin', 'Choose a Category') . ' -')));
		if(isset($this->request->params['named']['category_id'])) echo '</div>';

		if(isset($this->request->params['named']['created_date'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('created_date', array_merge(array('label' => __d('admin', 'Created Date'))));
		if(isset($this->request->params['named']['created_date'])) echo '</div>';

		if(isset($this->request->params['named']['updated_date'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('updated_date', array_merge(array('label' => __d('admin', 'Updated Date'))));
		if(isset($this->request->params['named']['updated_date'])) echo '</div>';

	?>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save Article'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="form-group">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div>'));?>
</div>